<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%kj_formid}}".
 *
 * @property string $id
 * @property integer $goods_id
 * @property string $user_id
 * @property string $cat_id
 * @property string $createtime
 * @property integer $type
 */
class KjFormid extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%kj_formid}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_id', 'cat_id', 'createtime'], 'required'],
            [['goods_id', 'type'], 'integer'],
            [['user_id'], 'string', 'max' => 200],
            [['cat_id'], 'string', 'max' => 50],
            [['createtime'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'goods_id' => '商品id',
            'user_id' => 'User ID',
            'cat_id' => 'Cat ID',
            'createtime' => 'Createtime',
            'type' => 'Type',
        ];
    }
}
